//
//  TabbarController.m
//  Theme
//
//  Created by 孙炎 on 15/11/12.
//  Copyright © 2015年 lanouhn. All rights reserved.
//

#import "FastNewsController.h"

@interface FastNewsController ()

@end

@implementation FastNewsController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"快讯";    
    self.view.backgroundColor = [[ConfigurationTheme shareInstance] getThemeColorWithName:@"ygColor"];
    
    //接收主题改变的通知
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeThemeNotificantion) name:ThemeChangeNotification object:nil];
    
    [self changeThemeNotificantion];
}

//改变主题的通知
- (void)changeThemeNotificantion{
    self.view.backgroundColor = [[ConfigurationTheme shareInstance] getThemeColorWithName:@"ygColor"];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
